<template>
  <q-page :style-fn="styFn">
    <q-scroll-area :style="{ height: pageHeight + 'px' }">
      菜单管理
      <div v-for="i in 100" :key="i">菜单管理--{{ i }}</div>
    </q-scroll-area>
  </q-page>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const pageHeight = ref(400);
const styFn = (offset: number, height: number) => {
  pageHeight.value = height - offset;
};
</script>
